package com.learn.service.impl;

import com.learn.annotation.Secure;
import com.learn.service.IAppointService;
import org.springframework.stereotype.Service;

@Service
public class AppointServiceImpl implements IAppointService {
    @Override
    public void sayHello() {
        System.out.println("hello");
    }

    @Override
    public void say(String msg) {
        System.out.println(msg);
    }

    @Override
    @Secure("say")
    public void secureSay(String msg) {
        System.out.println(msg);
    }

    @Override
    public void logInfo(String msg) {
        System.out.println("logInfo:" + msg);
    }
}
